page,
view,
picker,
button,
label,
swiper-item,
scroll-view,
cover-view,
navigator,
radio-group,
checkbox-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

page {
    background-color: #f7f7f7;
}

label {
    flex-direction: row;
    align-items: center;
}

scroll-view {
    width: auto;
}

picker[disabled],
button[disabled] {
    opacity: 0.5;
}

// restore
@each $tag
    in (
        view,
        picker,
        button,
        label,
        swiper,
        scroll-view,
        cover-view,
        navigator,
        swiper,
        swiper-item,
        radio,
        radio-group,
        checkbox-group,
        checkbox
    )
{
    #{$tag}.block {
        display: block;
    }
    #{$tag}.content-box {
        box-sizing: content-box;
    }
}

@each $color
    in (
        #3699ff,
        #121922,
        #1c9dff,
        #7c838d,
        #28292b,
        #ff4344,
        #a0acac,
        #364142,
        #464646,
        #a0a0a0,
        #fe4646,
        #343534,
        #fe2e2e,
        #1b1b1b,
        #888,
        #323232,
        #8e9299,
        #9b98b3,
        #303133,
        #ff4a5b,
        #818180,
        #9a9a9a,
        #307ff6,
        #ccc,
        #ddd,
        #fff,
        #333,
        #666,
        #aaa,
        #eee,
        #999
    )
{
    .color-#{str-slice("#{$color}", 2)} {
        color: $color;
    }
}

@each $bgc in (#ff4e68, #f7f7f7, #f3f3f3, #ff4a5b, #1c9dff, transparent, #2e8ef7, #eee, #fff, #ccc) {
    .bgc-#{str-slice("#{$bgc}", 2)} {
        background-color: $bgc;
    }
}

.border-none {
    border: none;
}

.tap-hover {
    opacity: 0.6;
}

.input {
    border: none;
    outline: none;
    background-color: transparent;
}

.safe-area-inset-top {
    box-sizing: content-box;
    height: var(--status-bar-height);
    padding-top: env(safe-area-inset-top);
}

.safe-area-inset-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.shelter {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(51, 51, 51, 0.3);
}

.oh {
    overflow: hidden;
}

.word-break-all {
    word-break: break-all;
}

.ellipsis {
    display: inline-block;
    overflow: hidden;
    min-width: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.flex-wrap {
    flex-wrap: wrap;
}
